<DOCTYPE html>
<html>
	<head>
		<title>医嘱执行</title>
		<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile-1.4.0.css" />
		<link rel="stylesheet" type="text/css" href="../../css/zpdydhl_mobile.css">
		<link rel="stylesheet" type="text/css" href="../../css/mobiscroll.custom-2.6.2.min.css">
		<link rel="stylesheet" type="text/css" href="../../css/yizhu.css">
		<script type="text/javascript" src="../../js/jquery-1.8.3.min.js"></script>
		<script type="text/javascript" src="../../js/zpdydhl_mobile.js"></script>
		<script type="text/javascript" src="../../js/mobiscroll.custom-2.6.2.min.js"></script>
		<script type="text/javascript" src="../../js/yizhu.js"></script>
	</head>

	<body>
		<div class="ui-page ui-page-theme-c ui-page-header-fixed ui-page-active">
		
		 <div id="zhixing_state_navbar" class="ui-navbar" style="position:fixed;top:42px;width:100%" >
			<ul class="ui-grid-a">
				<li class="li_zhixing_state ui-block-a" zhixing_state="未配液" id="weipeiye" style="width:20%">
					<a class="ui-link ui-btn ui-btn-a" style="color:#0D85C0;font-size:16px;">未配液</a>
				</li>
				<li class="li_zhixing_state ui-block-b" zhixing_state="已校对" id="weizhixing" style="width:20%">
					<a class="ui-link ui-btn ui-btn-a ui-btn-active"  style="color:#ffffff;font-size:16px;">未执行</a>
				</li>
				<li class="li_zhixing_state ui-block-c" zhixing_state="开始执行" id="kaishizhixing" style="width:20%">
					<a class="ui-link ui-btn ui-btn-a" style="color:#0D85C0;font-size:16px;">开始</a>
				</li>
				<li class="li_zhixing_state ui-block-d" zhixing_state="暂停执行" id="zantingzhixing" style="width:20%">
					<a class="ui-link ui-btn ui-btn-a" style="color:#0D85C0;font-size:16px;">暂停</a>
				</li>
				<li class="li_zhixing_state ui-block-e" zhixing_state="执行完毕" id="zhixingwanbi" style="width:19%">
					<a class="ui-link ui-btn ui-btn-a" style="color:#0D85C0;font-size:16px;">完成</a>
				</li>
			</ul>
			<ul class="ui-grid-a" style="border-top:1px #0D85C0 dashed;border-bottom:1px #0D85C0 solid">
				<li class="li_geiyao_fangshi ui-block-a" geiyao_fangshi="全部" id="quanbu" style="width:20%">
					<a class="ui-link ui-btn ui-btn-a ui-btn-active" style="color:#ffffff;font-size:16px;">全部</a>
				</li>
				<li class="li_geiyao_fangshi ui-block-b" geiyao_fangshi="输液" id="shuye" style="width:20%">
					<a class="ui-link ui-btn ui-btn-a"  style="color:#0D85C0;font-size:16px;">输液</a>
				</li>
				<li class="li_geiyao_fangshi ui-block-c" geiyao_fangshi="口服" id="koufu" style="width:20%">
					<a class="ui-link ui-btn ui-btn-a" style="color:#0D85C0;font-size:16px;">口服</a>
				</li>
				<li class="li_geiyao_fangshi ui-block-d" geiyao_fangshi="护理" id="zhongcaoyao" style="width:20%">
					<a class="ui-link ui-btn ui-btn-a" style="color:#0D85C0;font-size:16px;">护理</a>
				</li>
				<li class="li_geiyao_fangshi ui-block-e" geiyao_fangshi="其他" id="qita" style="width:19%">
					<a class="ui-link ui-btn ui-btn-a" style="color:#0D85C0;font-size:16px;">其他</a>
				</li>
			</ul>
		</div>
		 <div data-role="content"class="content ui-content" style="margin-top:80px;">
			<div class="yizhu_list_content yizhu_list_layout" style="">
				
			</div>
			<div class="jiazai_gengdong">加载更多</div>
		</div>

          
			<div style=" position:fixed; top:0px; bottom:0px; left:0px; right:0px; background-color:#000; z-index:999; height:100%; filter:alpha(opacity=90,Style=3);-moz-opacity:0.9;-khtml-opacity: 0.9;opacity: 0.9; display:none;" id="yizhu_dialog">
				<div class="yizhu_dialog" data-theme="a">
					<div class="yizhu_dialog_title" data-theme="a"></div>
					<div class="yizhu_dialog_content"></div>
					<div class="yizhu_dialog_button"></div>
				</div>
			</div>
			
			<script>
			var zhixing_state = "已校对";
			var geiyao_fangshi = "全部";
			$(function(){
				f2_key_number = 2;
				document_type_global = "yizhuZhixing";
				
				// 选项卡切换
				$(".li_zhixing_state").die().live("mouseover",function(){
					zhixing_state = $(this).attr("zhixing_state");
					if(zhixing_state=="已校对")
						f2_key_number=2;
					else if(zhixing_state=="开始执行")
						f2_key_number=3;
					else if(zhixing_state=="暂停执行")
						f2_key_number=4;
					else if(zhixing_state=="执行完毕")
						f2_key_number=5;
					else if(zhixing_state=="未配液")
						f2_key_number=1;
					$(".li_zhixing_state").each(function(){
						
						if($(this).attr("zhixing_state")==zhixing_state)
						{	
							$(this).find('a').addClass('ui-btn-active');
							$(this).find('a').css("color","#ffffff");
						}
						else
						{
							$(this).find('a').removeClass('ui-btn-active');
							$(this).find('a').css("color","#0D85C0");
						}
					})
					getYizhuList(patient_info_global.zhuyuan_id,geiyao_fangshi,zhixing_state);
					
				});

				$(".li_geiyao_fangshi").die().live("mouseover",function(){
					geiyao_fangshi = $(this).attr("geiyao_fangshi");
					$(".li_geiyao_fangshi").each(function(){
						
						if($(this).attr("geiyao_fangshi")==geiyao_fangshi)
						{	
							$(this).find('a').addClass('ui-btn-active');
							$(this).find('a').css("color","#ffffff");
						}
						else
						{
							$(this).find('a').removeClass('ui-btn-active');
							$(this).find('a').css("color","#0D85C0");
						}
					})
					getYizhuList(patient_info_global.zhuyuan_id,geiyao_fangshi,zhixing_state);
				});
				

				$(".back_home").die().live("click",function(){
					window.location.href="../System/showMobileSystem.html";
				});
				$("#yizhulishichaxun").die().live("click",function(){
					window.location.href="./yizhulishichaxun.html";
				});
			});
			
			function refreshData()
			{
				getYizhuList(getRequestOne("patient_zhuyuan_id"),"全部","已校对");
				$(".ui-page").show(function(){$(document).trigger('mouseover')});
			}
			</script>
			</div>
	</body>
</html>